//
//  DoctorDetailTeamCvCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/4/10.
//  Copyright © 2020 QDSG. All rights reserved.
//

import UIKit

class DoctorDetailTeamCvCell: UICollectionViewCell {
    
    func updateData(vm: TeamDoctorInfoViewModel) {
        avatarImgView.kf.setImage(with: URL(string: vm.url),
                                  placeholder: UIImage(named: "avatar_default"))
        nameLabel.text = vm.name
        descriptionLabel.text = vm.description
    }
    
    @IBOutlet weak var avatarImgView: UIImageView!{
        didSet {
            avatarImgView.contentMode = .scaleAspectFill
            avatarImgView.layer.cornerRadius = avatarImgView.width / 2.0
            avatarImgView.layer.masksToBounds = true
        }
    }
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var descriptionLabel: UILabel!
    @IBOutlet weak var detailBtn: UIButton! {
        didSet {
            detailBtn.isEnabled = false
        }
    }
    

}
